@import "~ng-devui/styles-var/devui-var.scss";

form {
  display: block;

  .mintForm {
    margin-top: 59px;
    width: 100%;
    height: 420px;
    background: #0b0c11;
    border: 1px solid #23252d;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;

    .triangle {
      width: 0;
      height: 0;
      border-top: 6px solid #8E8F97;
      border-right: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-left: 6px solid #8E8F97;
      border-radius: 2px;
      position: absolute;
    }

    .cancel {
      order: 100;
      text-align: center;
      width: 30px;
      height: 30px;
      border: 1px solid #23252d;
      border-radius: 0px 4px 0px 4px;
      background-color: inherit;
      line-height: 30px;
      color: #4a4b52;
      font-size: 14px;
      cursor: pointer;
    }

    .none {
      order: 100;
      text-align: center;
      width: 30px;
      height: 30px;
    }

    ::ng-deep .devui-form-group>input.devui-form-control.devui-select-input {
      width: 100%;
      height: 36px;
    }
  }

  .devui-form-span {
    height: 14px;
    font-size: 14px;
  }

  ::ng-deep .devui-form-span.devui-required:before {
    content: none;
  }

  .label:after {
    content: "*";
    color: red;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
  }

  .ValidateMessage {
    margin-left: 20px;
    color: red;
  }

  .right {
    width: 75%;
    height: 420px;
  }

  .row1 {
    display: inline-flex;
    flex-direction: row;
    width: 100%;

    #name,
    #author {
      width: 100%;
      height: 36px;
    }

    .devui-form-item:nth-of-type(1) {
      flex: 1;
    }

    .devui-form-item:nth-of-type(2) {
      margin-left: 3%;
      flex: 1;
    }
  }

  .row2 {
    display: inline-flex;
    flex-direction: row;
    width: 100%;

    #collectionIndex,
    #category,
    #mintAmount {
      width: 100%;
      height: 36px;
    }

    .devui-form-item:nth-of-type(1) {
      flex: 1;
    }

    .devui-form-item:nth-of-type(2) {
      margin-left: 3%;
      flex: 1;
    }

    .devui-form-item:nth-of-type(3) {
      margin-left: 3%;
      flex: 1;
    }
  }

  #description {
    height: 80px;
  }

  ::ng-deep .devui-dropup {
    width: 100%;
  }

  #mint-btn {
    margin-top: 60px;
    margin-bottom: 240px;
    display: flex;
    flex-direction: row;
    justify-content: center;

    ::ng-deep & button {
      font-size: 16px;
      font-family: Microsoft YaHei, Microsoft YaHei-Normal;
      font-weight: Normal;
      text-align: CENTER;
      color: #000000;
      line-height: 14px;
      width: 600px;
      height: 50px;
    }
  }
}

::ng-deep .devui-form-vertical .devui-form-item {
  margin-bottom: 0px !important;
}

::ng-deep .devui-form-vertical .devui-form-label {
  margin: 40px 0 16px 0;
  height: 14px;
  padding-bottom: 0px;
}

::ng-deep .devui-form-span {
  color: #ffffff !important;
}

.upload-item {
  width: 320px;
  height: 320px;
  border: 1px dashed #eee;
  text-align: center;
  cursor: pointer;
  margin: 40px 40px 60px 40px;
}

.upload-item-invalid {
  width: 320px;
  height: 320px;
  border: 1px dashed red;
  text-align: center;
  cursor: pointer;
  margin: 40px 40px 60px 40px;
}

.tipMessage {
  margin: 230px 20px 20px 20px;
  width: 280px;
  height: 40px;
  font-size: 12px;
  font-family: Microsoft YaHei, Microsoft YaHei-Normal;
  font-weight: Normal;
  text-align: LEFT;
  color: #4a4b52;
  line-height: 20px;
}

.icon-op-add {
  font-size: 16px;
  color: $devui-icon-fill;
  position: relative;
  top: 50%;
}

.devui-add-images {
  width: 100px;
  height: 100px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;

  &.devui-upload {
    border: 1px dashed $devui-line;
    border-radius: 2px;

    &:hover {
      border-color: $devui-brand;

      .icon-op-add {
        color: $devui-icon-fill-active;
      }
    }

    &.devui-upload-dropover {
      border-color: $devui-brand;
    }
  }

  .devui-add-items {
    background-color: $devui-default-bg;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    border: 1px solid $devui-line;
    color: $devui-text;

    &>* {
      position: absolute;
      width: 80%;
      left: 50%;
      transform: translateX(-50%);
    }

    span {
      text-align: center;
    }

    .devui-cancel-upload {
      display: block;
      margin-top: 8px;

      &:hover {
        color: $devui-link;
      }
    }

    .filename {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      top: 20%;
    }

    .devui-loading {
      top: 60%;
    }

    .icon-file {
      top: 20%;
      font-size: 32px;
    }

    &.devui-upload-failed,
    &.devui-upload-success {
      background-color: $devui-global-bg-normal;

      .filename {
        top: 70%;
      }
    }

    &.devui-upload-failed {
      border-color: $devui-danger-line;
      color: $devui-danger;

      .icon-file {
        color: $devui-danger-line;
      }
    }

    &.devui-upload-success {
      border-color: $devui-success-line;
      color: $devui-success;

      .icon-file {
        color: $devui-success-line;
      }
    }
  }

  .icon {
    font-size: 16px;
    color: $devui-icon-bg;
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    &.icon-running {
      left: 35%;
    }

    &.devui-failed-icon {
      left: 60%;
    }
  }

  &:hover {

    .devui-upload-failed,
    .devui-upload-success {
      &::before {
        position: absolute;
        content: "";
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border: 1px solid transparent;
        border-radius: 2px;
        background-color: #000000;
        opacity: 0.4;
        z-index: 1;
      }

      &+.icon-delete {
        display: block;
        z-index: 2;

        &+.icon-running {
          display: block;
          z-index: 2;
        }
      }
    }
  }
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--devui-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--devui-global-bg) inset !important;
}

#add-spacing {
  margin-top: 60px;
  width: 100%;
  height: 50px;
  border: 1px dashed #23252d;
  border-radius: 4px;
  font-size: 16px;
  font-family: Microsoft YaHei, Microsoft YaHei-Normal;
  font-weight: normal;
  text-align: CENTER;
  color: #8e8f97;
  line-height: 16px;
}
